//
//  XMConversationNoticeView.m
//  XunMi
//
//  Created by MacBook on 2024/4/11.
//  Copyright © 2024 TieZhu. All rights reserved.
//

#import "XMConversationNoticeView.h"
#import "XMScrollTextView.h"

@interface XMConversationNoticeView ()
@property (weak, nonatomic) IBOutlet UIButton *closeBtn;
@property (nonatomic, strong) XMScrollTextView *scrollTextView;

@end

@implementation XMConversationNoticeView

- (void)awakeFromNib {
    [super awakeFromNib];
    self.scrollTextView = [[XMScrollTextView alloc] initWithFrame:CGRectZero];
    self.scrollTextView.textColor = UIColor.whiteColor;
    self.scrollTextView.font = kUIFont(12);
    self.scrollTextView.fade = 0.026;
    [self.scrollTextView setText:@"严禁涉黄、诈骗等违法行为，如遇到对方疑似违法行为，请及时举报!"];
    [self addSubview:self.scrollTextView];
    [self.scrollTextView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self).insets(UIEdgeInsetsMake(0, 20, 0, 60));
    }];
}

- (IBAction)closeAction:(UIButton *)sender {
    if (self.closeBlock) {
        self.closeBlock();
    }
}


@end
